﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChiDao.Component.Utils
{
    /// <summary>
    ///     字符串类型扩展方法类
    /// </summary>
    public static class StringExtensions
    {
        /// <summary>
        /// 将字符串类型转为Guid类型
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public static Guid ToGuid(this string input)
        {
            Guid result = Guid.Empty;
            Guid.TryParse(input, out result);
            return result;
        }
    }
}